package com.zhq.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhq.system.entity.SysUser;
import com.zhq.system.mapper.SysUserMapper;
import com.zhq.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    SysUserMapper sysUserMapper;

    @Override
    public SysUser finUserByUserName(String username) {
        return  sysUserMapper.selectOne(new QueryWrapper<SysUser>().eq("user_name",username));
    }
}
